import { ObjCreate } from "../common/ObjCreate";
import { GTextFormat } from "../../../common/GTextFormat";
import { Language } from "../../../../extend/language/Language";
import { SkillConfig } from "../../resource/SkillConfig";
import { Cache } from "../../cache/Cache";
//class SuitSkillMsgTip
    
    export  class SuitSkillMsgTip /* flash.display.Sprite */
    {
        constructor()
        {
            
            this.init();
            mouseChildren = false;
            return;
        }

        /* internal  */init(): void
        {
            this._tipTxt = ObjCreate.createTextField("", 0, 0, 200, 100, this);
            var loc1=new GTextFormat("", 12, 65280, null, null, true);
            this._linkTxt = ObjCreate.createTextField(Language.getString(36014), 100, 50, 80, 20, this, loc1);
            return;
        }

        public updateTips(): void
        {
            var loc1=SkillConfig.instance.getInfoByName(Cache.instance.role.suitSkillInfo.skillId);
            var loc2="";
            if (loc1) 
            {
                loc2 = loc1.skillName;
            }
            var loc3=Language.getStringByParam(35999, loc2);
            this._tipTxt.htmlText = loc3;
            return;
        }

        /* internal */ /* var */_tipTxt: Object /* flash.text.TextField */;

        /* internal */ /* var */_linkTxt: Object /* flash.text.TextField */;
    }
